﻿using System;
using System.Collections.Generic;
using System.Text;

using ECCIT.Business.Model;
using OgilvyOne.Model;

namespace OgilvyOne.UKNow.Model
{
    [Serializable]
    public class WarmupModel : BaseModel
    {
        public int? LanguageID { get; set; }                // 语言类型
        public int? ID { get; set; }                       // 作品ID
        public string ImagePath { get; set; }               // 作品图片路径
        public string Description { get; set; }             // 作品描述
        public int? AuthorID { get; set; }                 // 作品作者ID
        public int? State { get; set; }                     // 作品状态 0-未发布 1-已发布
        public int? VoteCount { get; set; }                 // 投票数量
        public int? ForwardCount { get; set; }              // 转发数量
        public int? CommentCount { get; set; }              // 评论数量
        public DateTime InsertedTime { get; set; }
        public DateTime UpdatedTime { get; set; }
        public MemberModel Author { get; set; }             // 作品作者

        public string MemberImg { get; set; }

        public WarmupModel() { }

        public WarmupModel(int? langID
            , int? id
            , string imagePath
            , string description
            , int? authorID
            , int? state
            , int? voteCount
            , int? forwardCount
            , int? commentCount
            , DateTime insertedTime, DateTime updatedTime)
        {
            this.LanguageID = langID;
            this.ID = id;
            this.ImagePath = imagePath;
            this.Description = description;
            this.AuthorID = authorID;
            this.State = state;
            this.VoteCount = voteCount;
            this.ForwardCount = forwardCount;
            this.CommentCount = commentCount;
            this.InsertedTime = insertedTime;
            this.UpdatedTime = updatedTime;
        }
    }
}
